module.exports = (req,res,next) => {
    //判断
    console.log(req.session);
    if(!req.session.username) {
        return res.redirect('/login');
    }
    next();
}